/*
 * @Author: mikey.zhaopeng
 * @Date:   2016-05-04 14:57:16
 * @Last Modified by:   mikey.zhaopeng
 * @Last Modified time: 2016-05-27 14:45:55
 */

'use strict';

define([
    './baseBean',
], function(
    BaseBean
) {
    function me() {
        BaseBean.apply(this, arguments);
        var self = this;
        this.fullCondition = function(params, callback, errorCallback) {
            self._post('/ec/fullCondition', params, function(result) {
                if (callback) {
                    callback(result, params);
                }
            }, errorCallback);
        }
        this.allWebSite = function(callback, errorCallback) {
            var params = {};
            self._post('/ec/allWebSite', params, function(result) {
                if (callback) {
                    callback(result, params);
                }
            }, errorCallback);
        }

        this.allWebSiteByUserId = function(callback, errorCallback) {
            var params = {};
            self._get('/ec/allWebSiteByUserId', params, function(result) {
                if (callback) {
                    callback(result, params);
                }
            }, errorCallback);
        }

    };
    return new me();
});
